<?php 
$connect = new DatabaseConnection('localhost','root','', 'blogpage');
$db = new selectdb('roniplblog');


$sql = "SELECT * FROM blogpage ORDER BY blog_id DESC";
$r = mysql_query($sql);
$rows = mysql_fetch_array($r);
$result = mysql_query($sql);


?>
<!-- MAIN CONTENT TEMPLATE -->
<div class="container">
	<div class="section clearing">
		<div class="column div_1_of_1 rp-web-header">
		<h1>All about web.</h1>
		<div class="rp-wrapper-name">
			<span class="rp-roni">ronipinili blog</span>
			<div class="clear"></div>
		</div>
		</div>
	</div><!-- /end of web title -->
	<div class="section clearing">
		<div class="column div_3_of_4 appendData">
			<!-- Structure generated by blog.js -->


			<?php 

			if($_SESSION['SESS_MEMBER_ID'] || (trim($_SESSION['SESS_MEMBER_ID']) == 1)) {
					$addnewblog = <<<EOD

					<div class="button add-new">Add new blog</div>

EOD;
			echo $addnewblog;
			}

			?>


		</div>
		<?php include 'layout/side-widget.php'; ?>
	</div><!-- /end of content wrapper -->
</div>
<!-- MAIN CONTENT TEMPLATE -->

